namespace Cos.Core.NHibernate
{
    using System.Collections.Generic;

    public class TagDataModel
    {
        //public virtual IEnumerable<BlogArticleTagDataModel> BlogArticleTags { get; set; }

        public virtual string CultureCode { get; set; }

        //public virtual IEnumerable<ForumTopicTagDataModel> ForumTopicTags { get; set; }

        public virtual string Name { get; set; }

        //public virtual IEnumerable<VideoTagDataModel> VideoTags { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as TagDataModel;

            return model != null && this.Name == model.Name && this.CultureCode == model.CultureCode;
        }

        public override int GetHashCode()
        {
            return this.Name.GetHashCode() ^ this.CultureCode.GetHashCode();
        }
    }
}